/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.skyeye.modeling.customerized.figures;

import org.eclipse.draw2d.StackLayout;
import org.skyeye.modeling.customerized.model.SimpleInput;
import org.skyeye.modeling.customerized.model.SimpleOutput;


public class InputFigure extends NodeFigure 
{
	protected boolean value = false;
	public InputFigure() {
		FixedConnectionAnchor anchor = new FixedConnectionAnchor(this);
		anchor.topDown = false;
		anchor.offsetH = 7;
		inputConnectionAnchors.addElement(anchor);
		outputConnectionAnchors.addElement(anchor);
		connectionAnchors.put(SimpleInput.TERMINAL_IN, anchor);
		setLayoutManager(new StackLayout());
		
	}
	
	public void setValue(boolean val) {
		value = val;
		repaint();
	}
	public boolean getValue(){
		return this.value;
	}


}
